<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<%@taglib prefix="fm" uri="http://www.springframework.org/tags/form"%>
<div class="right">
	<div class="location">
		<strong>你现在所在的位置是:</strong> <span>会议室管理页面 >> 会议室修改页面</span>
	</div>
	<div class="providerAdd">
		<!-- 请在此处添加修改数据表单 -->
		<form id="roomForm"  name="roomForm" action="${pageContext.request.contextPath }/room/update.html" method="post">
			<input type="hidden" name="id" value="${room.id }"/>
			<!--div的class 为error是验证错误，ok是验证成功-->

			<div>
				<label for="name">会议室名称：</label>
				<input type="text" name="name" id="name" value="${room.name}">
				<font color="red"></font>

			</div>
			<div>
				<label for="location">会议室位置：</label>
				<input type="text" name="location" id="location" value="${room.location}">
				<font color="red"></font>

			</div>
			<div>
				<label for="number">容纳人数：</label>
				<input type="text" name="number" id="number" value="${room.number}">
				<font color="red"></font>
			</div>
			<div>
				<label for="description">会议室描述：</label>
				<input type="text" name="description" id="description" value="${room.description}">
				<font color="red"></font>
			</div>
			<div>
				<label>会议室状态：</label>
				<input type="radio" name="status" value="1" <c:if test="${room.status==true}"> checked</c:if>>可用
				<input type="radio" name="status" value="0" <c:if test="${room.status==false}"> checked</c:if>>不可用

				<font color="red"></font>
			</div>
			<div class="providerAddBtn">
				<input type="button" name="save" id="save" value="保存" />
				<input type="button" id="back" name="back" value="返回"/>
			</div>
		</form>
	</div>
</div>
</section>
<%@include file="/WEB-INF/jsp/common/foot.jsp"%>
<!-- 请注意更新JS脚本路径 -->
<script type="text/javascript"
	src="${pageContext.request.contextPath }/statics/js/roommodify.js"></script>
